<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
    <title>ShellCheck: CentOS6 – </title>
    <link rel="stylesheet" href="css/bootstrap.min.css" />
  </head>
  <body style="margin-left: auto; margin-right: auto; max-width: 800px">
    <h1>CentOS6 – ShellCheck Wiki</h1>
    <a href="https://github.com/koalaman/shellcheck/wiki/CentOS6">See this page on GitHub</a>
    <p style="display: none"><a href="index.html">Sitemap</a></p>
    <hr />
    <p><em>Note: Haskell Platform v7.10.3 and v8.0.1 requires glibc v2.14
but CentOS 6 has v2.12 so be sure to download v7.10.2-a release from
their <a href="https://www.haskell.org/platform/prior.html">prior
releases</a> page.</em></p>
<h1 id="deps">Deps</h1>
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="CentOS6.html#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="ex">yum</span> groupinstall <span class="st">&quot;Development Tools&quot;</span> <span class="at">-y</span></span>
<span id="cb1-2"><a href="CentOS6.html#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="ex">yum</span> install gmp-devel <span class="co"># may need epel</span></span>
<span id="cb1-3"><a href="CentOS6.html#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="fu">sudo</span> ln <span class="at">-s</span> /usr/lib64/libgmp.so.3  /usr/lib64/libgmp.so.10</span></code></pre></div>
<h1 id="get-haskell-and-build-it">Get Haskell and build it</h1>
<h4 id="based-on-httpswwwhaskellorgplatformlinuxhtmllinux-generic">Based
on <a href="https://www.haskell.org/platform/linux.html#linux-generic"
class="uri">https://www.haskell.org/platform/linux.html#linux-generic</a></h4>
<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="CentOS6.html#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="va">dir</span><span class="op">=</span><span class="st">&quot;</span><span class="va">$(</span><span class="fu">mktemp</span> <span class="at">-d</span><span class="va">)</span><span class="st">&quot;</span></span>
<span id="cb2-2"><a href="CentOS6.html#cb2-2" aria-hidden="true" tabindex="-1"></a><span class="bu">pushd</span> <span class="st">&quot;</span><span class="va">$dir</span><span class="st">&quot;</span></span>
<span id="cb2-3"><a href="CentOS6.html#cb2-3" aria-hidden="true" tabindex="-1"></a><span class="fu">wget</span> https://haskell.org/platform/download/7.10.2/haskell-platform-7.10.2-a-unknown-linux-deb7.tar.gz</span>
<span id="cb2-4"><a href="CentOS6.html#cb2-4" aria-hidden="true" tabindex="-1"></a><span class="fu">tar</span> xvzf haskell-platform-7.10.2-a-unknown-linux-deb7.tar.gz</span>
<span id="cb2-5"><a href="CentOS6.html#cb2-5" aria-hidden="true" tabindex="-1"></a><span class="ex">./install-haskell-platform.sh</span></span>
<span id="cb2-6"><a href="CentOS6.html#cb2-6" aria-hidden="true" tabindex="-1"></a><span class="bu">popd</span></span>
<span id="cb2-7"><a href="CentOS6.html#cb2-7" aria-hidden="true" tabindex="-1"></a><span class="fu">rm</span> <span class="at">-r</span> <span class="st">&quot;</span><span class="va">$dir</span><span class="st">&quot;</span></span></code></pre></div>
<h1 id="install-shellcheck">Install ShellCheck</h1>
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="CentOS6.html#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="ex">cabal</span> update</span>
<span id="cb3-2"><a href="CentOS6.html#cb3-2" aria-hidden="true" tabindex="-1"></a><span class="ex">cabal</span> install shellcheck</span></code></pre></div>
<h1 id="place-it-in-a-global-directory">Place it in a global
directory</h1>
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="CentOS6.html#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="fu">cp</span> ~/.cabal/bin/shellcheck /usr/local/bin <span class="co"># portable to other el6 systems without Haskell</span></span></code></pre></div>
    <hr />
    <p style='font-size: 80%'><a href="../index.html">ShellCheck</a> is a static analysis tool for shell scripts. This page is part of its documentation.</p>
  </body>
</html>


